//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.lyyzoo.data.entity;

import com.lyyzoo.bean.BaseBean;
import java.io.Serializable;

public abstract class AbstractEntity<ID extends Serializable> extends BaseBean implements Serializable {
    public AbstractEntity() {
    }

    public abstract ID getId();

    public boolean equals(Object obj) {
        if (null == obj) {
            return false;
        } else if (this == obj) {
            return true;
        } else if (!this.getClass().equals(obj.getClass())) {
            return false;
        } else {
            AbstractEntity<?> that = (AbstractEntity)obj;
            return null == this.getId() ? false : this.getId().equals(that.getId());
        }
    }

    public int hashCode() {
        int hashCode = 17;
        hashCode = hashCode + (null == this.getId() ? 0 : this.getId().hashCode() * 31);
        return hashCode;
    }
}
